package variableparameter;

import java.util.*;

public class MyVariableParameter4 {
    public static void main(String[] args) {
        List<String> list = List.of("qq", "ww", "ee");
        System.out.println(list);

        Map<String, Integer> map = Map.of("qq", 23, "ww", 24, "ee", 25);
        System.out.println(map);

        Map<String, Integer> entries = Map.ofEntries(Map.entry("aa", 23), Map.entry("bb", 22), Map.entry("cc", 25));
        System.out.println(entries);

        ArrayList<Integer> list1 = new ArrayList(List.of(12, 23, 34, 45));
        System.out.println(list1);

        Set<Integer> set = Set.of(12, 23, 34, 45);
        System.out.println(set);
    }
}
